const state = {
  inFront:true,
  isLogin:false,
  collapsed:true,
  sidebar:{
    opened: true,
    withoutAnimation: false
  }
}

const mutations = {
  changeFrontState:(state,payload)=>{
      state.isFront = payload;
  },
  changeLoginState:(state,payload)=>{
    state.isLogin = payload;
  },
  changeCollapsed:(state)=>{
    state.collapsed = !state.collapsed;
  },
  toggleSidebar:(state)=>{
    state.sidebar.opened = !state.sidebar.opened
    state.sidebar.withoutAnimation = false
  }
}

const actions = {}
export default {
  state,
  mutations,
  actions
}